package com.cloud_sang.fubai.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

public interface LoadBalancer {
    /**
     * 轮询
     * @param serviceInstances
     * @return
     */
    ServiceInstance pollingInstances(List<ServiceInstance> serviceInstances);

    /**
     * 随机
     * @param serviceInstances
     * @return
     */
    ServiceInstance randomInstances(List<ServiceInstance> serviceInstances);

}
